//
//  SQGoodsView.h
//  pai
//
//  Created by pro on 14-11-20.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SQSocket.h"

@interface SQGoodsView : UIView<UITextFieldDelegate>
//商品价格
@property NSInteger goodsPrice;
//可用最大积分
@property NSInteger canUseMaxPoints;
//我的余额和积分
@property NSInteger myprice;
@property NSInteger mypoint;

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UITextField *priceLabel;
@property (weak, nonatomic) IBOutlet UITextField *pointLabel;
@property (weak, nonatomic) IBOutlet UILabel *pointMsgLabel;

-(void)setDic:(NSDictionary*)dic;
-(void)setItem:(product_sku_t)item;
+(SQGoodsView*)initmyview;
- (IBAction)doActionClickBtn:(id)sender;

@end
